package com.ruoyi.common.enums;


public enum DataScopeType   {
    /**
     * ALL=1全部
     */
    ALL("1", "全部"),
    /**
     * CUSTOMIZE=2自定义
     */
    CUSTOMIZE("2", "自定义"),
    /**
     * THIS_LEVEL=3本级
     */
    THIS_LEVEL("3", "本级"),
    /**
     * THIS_LEVEL_CHILDREN=4本级以及子级
     */
    THIS_LEVEL_CHILDREN("4", "本级以及子级"),
    /**
     * SELF=5个人
     */
    SELF("5", "个人");

    private final String code;
    private final String name;

    DataScopeType(String code, String name)
    {
        this.code = code;
        this.name = name;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return name;
    }
}
